package test0ne.设计模式.组合模式;

public class File extends Node {
    private String name;

    public File(String name) {
        super(name);
    }

    @Override
    public void add(Node child) {
        System.out.println("不能添加子节点");
    }

    @Override
    public void ls(int space) {
        super.ls(space);
    }

}
